package cn.lds.healthexamspringboot.service.impl;

import cn.lds.healthexamspringboot.domain.HealthExamItem;
import cn.lds.healthexamspringboot.dto.ResponseDTO;
import cn.lds.healthexamspringboot.mapper.HealthExamItemMapper;
import cn.lds.healthexamspringboot.service.HealthExamItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HealthExamItemServiceImpl implements HealthExamItemService {

    @Resource
    private HealthExamItemMapper healthExamItemMapper;

    @Override
    public ResponseDTO<List<HealthExamItem>> selectItemAll() {

        List<HealthExamItem> healthExamItems = healthExamItemMapper.selectList(null);


        return ResponseDTO.buildSuccess(healthExamItems);
    }
}
